{% extends "FOSUserBundle::layout.html.twig" %}

{% block fos_user_content %}
{% if error %}
    <div>{{ error|trans([], 'MssaeUserBundle') }}</div>
{% endif %}
    <div id="login">
        <form action="{{ path("fos_user_security_check") }}" method="post">
            <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />

            <p class="ligne">
                <label class="label" for="username">{#{ 'security.login.username'|trans({}, 'FOSUserBundle') }#} Login :</label>
                <input class="input" type="text" id="username" name="_username" value="{{ last_username }}" />
            </p>

            <p class="ligne">
                <label class="label" for="password">{#{ 'security.login.password'|trans({}, 'FOSUserBundle') }#}Password :</label>
                <input class="input" type="password" id="password" name="_password" />
            </p>

            <p class="ligne">
                <input class="checkbox" type="checkbox" id="remember_me" name="_remember_me" value="on" />
                <label class="label" for="remember_me">{#{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }#}Se souvenir de moi</label>
            </p>

            <input class="submit" type="submit" id="_submit" name="_submit" value="{#{ 'security.login.submit'|trans({}, 'FOSUserBundle') }#}Entrer" />
        </form>
    </div>
{% endblock fos_user_content %}
